/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 117, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: var(--text-white);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: var(--text-white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-white);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(163, 117, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.card-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 16px;
}

/* 统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.stat-trend {
    font-size: 0.8rem;
    margin-top: 5px;
}

.trend.up {
    color: var(--success-color);
}

.trend.down {
    color: var(--danger-color);
}

/* 优先级标识 */
.priority-indicator {
    margin-bottom: 20px;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.priority-badge.urgent {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.priority-badge.high {
    background: linear-gradient(135deg, #ffa726, #f57c00);
    color: white;
}

.priority-badge.normal {
    background: #e9ecef;
    color: var(--text-dark);
}

.priority-icon {
    font-size: 16px;
}

/* 推荐卡片 */
.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.recommendation-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.recommendation-card.best::before {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.recommendation-card.nearest::before {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.project-icon-large {
    font-size: 48px;
    flex-shrink: 0;
}

.project-info h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--text-dark);
}

.wait-time {
    font-size: 16px;
    color: var(--text-gray);
    margin: 5px 0;
}

.distance {
    font-size: 14px;
    color: var(--text-gray);
}

/* 项目列表 */
.project-list-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.project-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.project-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-name {
    font-weight: 500;
    color: var(--text-dark);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wait-time {
    color: var(--text-gray);
    font-size: 14px;
}

.status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.status.available {
    background: #d4edda;
    color: #155724;
}

.status.maintenance {
    background: #fff3cd;
    color: #856404;
}

.status.closed {
    background: #f8d7da;
    color: #721c24;
}

/* 仪表板样式 */
.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.btn-filter {
    background: #e9ecef;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #dee2e6;
}

.trend-chart {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.time-stat-item:last-child {
    border-bottom: none;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 通知消息 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: var(--success-color);
}

.notification.error {
    background: var(--danger-color);
}

.notification.warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.notification.info {
    background: var(--info-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 个人中心样式 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    color: white;
}

.profile-avatar .avatar {
    font-size: 60px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.user-level {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.priority-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 10px;
}

/* 区域样式 */
.section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.section h4 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservation-item, .record-item, .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reservation-item:hover, .record-item:hover, .order-item:hover {
    background: #e9ecef;
}

.reservation-info h5, .record-details h5, .order-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.reservation-info p, .record-details p, .order-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-gray);
}

.record-item {
    align-items: flex-start;
}

.record-details {
    flex: 1;
}

.record-rating {
    color: #ffc107;
    font-size: 14px;
}

/* 表单容器 */
.reservation-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
}

.reservation-form h4 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 18px;
}